package com.bw.unit6.db

import android.content.Context
import androidx.room.Room

/**
 *
 * @ClassName: DbUtil
 * @Description: java类作用描述
 * @Author: zhangyanchao
 * @CreateDate: 2024/9/21 12:12 PM
 * @Version: 1.0
 */
class DbUtil {
    companion object {
        lateinit var dataBase: MyDataBase

        fun init(context: Context) {
            dataBase = Room.databaseBuilder(context, MyDataBase::class.java, "my.db")
                .allowMainThreadQueries()
                .build()
        }
    }
}